package com.tourlaid.mamagerment.mapper

import com.tourlaid.mamagerment.dto.StockOutDto
import com.tourlaid.mamagerment.entity.StockOut
import org.apache.ibatis.annotations.Param

/**
 * Created by xiaoyongge on 2017/7/19.
 */

interface StockOutMapper {

    fun getById(id: Long): StockOut?;

    fun insert(record: StockOut);

    fun queryForList(@Param("shopId") shopId: Long?, @Param("goodsId") goodsId: Long?): List<StockOutDto>?

    fun update(newStockOut: StockOut)

    fun delete(@Param("id") id: Long?, @Param("editor") editor: Long?)

    fun getControlNo(@Param("controlNo") controlNo: String): StockOut?

}